<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/13
 * Time: 17:14
 */

return [
    //Controller权限映射表
    'Admin' => 'System',
    'Role' => 'System',
    'Config' => 'System',
    'Logs' => 'System',
    'Updatelogs' => 'System',
    'Server' => 'Server',
    'Labels' => 'Center',
    'Article' => 'Center',
    'Album' => 'Center',
    'Video' => 'Center',
    'Motto' => 'MineCore',
    'Index' => 'MineCore',
    "list"=>[
        [
            "controller" => "System",
            "controllerName" => "核心熔炉",
            "child"=>array(
                array(
                    "name"=>"议员管理",
                    "add|新增"=>"admin_add",
                    "delete|删除"=>"admin_del",
                    "select|查询"=>"admin_index",
                    "update|更新"=>"admin_edit"
                ),
                array(
                    "name"=>"保密等级",
                    "add|新增"=>"role_add",
                    "delete|删除"=>"role_del",
                    "select|查询"=>"role_index",
                    "update|更新"=>"role_edit",
                    "authority|分配权限"=>"role_authority"
                ),
                array(
                    "name" => "邮件配置",
                    "select|查询" => "config_email",
                    "update|更新" => "config_email_edit"
                ),
                array(
                    "name"=>"记录中心",
                    "select|查询"=>"logs_index"
                ),
                array(
                    "name"=>"更新日志",
                    "add|新增"=>"updatelogs_add",
                    "delete|删除"=>"updatelogs_del",
                    "select|查询"=>"updatelogs_index",
                    "update|更新"=>"updatelogs_edit"
                )
            )
        ],
        [
            "controller"=>"Server",
            "controllerName"=>"服务监控",
            "child"=>array(
                array(
                    "name"=>"实时监控",
                    "select|查询"=>"server_index"
                ),
                array(
                    "name"=>"消息队列",
                    "select|查询"=>"server_queue"
                )
            )
        ],
        [
            "controller"=>"Center",
            "controllerName"=>"深红之间",
            "child"=>array(
                array(
                    "name"=>"图文档案",
                    "add|新增"=>"article_add",
                    "delete|删除"=>"article_del",
                    "select|查询"=>"article_index",
                    "update|更新"=>"article_edit"
                ),
                array(
                    "name"=>"记忆回廊",
                    "add|新增"=>"album_add",
                    "delete|删除"=>"album_del",
                    "select|查询"=>"album_index",
                    "update|更新"=>"album_edit"
                ),
                array(
                    "name"=>"光影缝隙",
                    "add|新增"=>"video_add",
                    "delete|删除"=>"video_del",
                    "select|查询"=>"video_index",
                    "update|更新"=>"video_edit"
                ),
                array(
                    "name"=>"标签分类",
                    "add|新增"=>"labels_add",
                    "delete|删除"=>"labels_del",
                    "select|查询"=>"labels_index",
                    "update|更新"=>"labels_edit"
                )
            )
        ],
        [
            "controller"=>"MineCore",
            "controllerName"=>"大鱼海棠",
            "child"=>array(
                array(
                    "name"=>"细语微风",
                    "add|新增"=>"motto_add",
                    "delete|删除"=>"motto_del",
                    "select|查询"=>"motto_index",
                ),
                array(
                    "name"=>"朋至远方",
                    "add|新增"=>"index_add",
                    "delete|删除"=>"index_del",
                    "select|查询"=>"index_index",
                    "update|更新"=>"index_edit"
                ),
            )
        ]
    ]
];